package com.scu.hotelsystem.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


public class RoomBusiness {
    private int id;
    private int guest_id_1;
    private int guest_id_2;
    private int cid;
    private int room_id;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date start_time;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date expire_time;

    public RoomBusiness() {
    }



    public RoomBusiness(int guest_id_1, int guest_id_2, int cid, int room_id, Date start_time, Date expire_time) {

        this.guest_id_1 = guest_id_1;
        this.guest_id_2 = guest_id_2;
        this.cid = cid;
        this.room_id = room_id;
        this.start_time = start_time;
        this.expire_time = expire_time;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getGuest_id_1() {
        return guest_id_1;
    }

    public void setGuest_id_1(int guest_id_1) {
        this.guest_id_1 = guest_id_1;
    }

    public int getGuest_id_2() {
        return guest_id_2;
    }

    public void setGuest_id_2(int guest_id_2) {
        this.guest_id_2 = guest_id_2;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public int getRoom_id() {
        return room_id;
    }

    public void setRoom_id(int room_id) {
        this.room_id = room_id;
    }

    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    public Date getExpire_time() {
        return expire_time;
    }

    public void setExpire_time(Date expire_time) {
        this.expire_time = expire_time;
    }
}
